package com.letfox.ad.service.relation;

import java.util.List;
import java.util.Map;

import com.letfox.ad.model.ADPhysicScreen;
import com.letfox.ad.model.ADScreenPlan;
import com.letfox.ad.model.ADSereenPlan;
import com.letfox.ad.model.ADServingMaterial;
import com.letfox.ad.model.ADTimeRangeStatistics;

public interface ADColScreService {
	
	public List<ADServingMaterial> getMaterialList(String servingId);
	public int insertPlan(ADScreenPlan adScreenPlan);
	public int insertScreenMaterial(Map<String, String> map);
	public int insertScrePlanMaterial(Map<String, String> map);
	public int insertPhysic(ADPhysicScreen adPhysicScreen);
	public int insertScreenPlayDetail(Map<String, String> map);
	public List<ADTimeRangeStatistics> selectAdEveryday(Map<String, String> map);
	public List<Map<String, String>> selectAdFirstTen(String sereenId);
	public Map<String, String> selectAdCurrent(Map<String, String> map);
	public String selectPlanMoney(String sereenId);
	public List<Map<String, String>> selectPhys();
	public List<Map<String, String>> selectADPlans();
	public ADServingMaterial getMaterial(String servingId);
	public List<Map<String, String>> selectAdPhysicTen(Map<String, String> map);
	/**
	 * 查找相似度90%的素材
	 * @param map
	 * @return
	 */
	public List<ADServingMaterial> MatchingMaterial(Map<String, String> map);
	/**
	 * 查询参数w,h小于表中的素材
	 * @param map
	 * @return
	 */
	public List<ADServingMaterial> twoMatchingMaterial(Map<String, Integer> map);
	/**
	 * 根据时间，广告名称（模糊）查询广告播放次数，金额等信息。
	 * map:起始时间 start_date ，结束是时间 end_date ，广告名称 adName
	 * @param map
	 * @return
	 */
	public List<Map<String, String>> queryPlanList(Map<String, String> map);
	/**
	 * 查询广告素材信息
	 * @param map
	 * @return
	 */
	public List<Map<String,String>> queryScreenInfo(String screenPlanId);
	/**
	 * 查询广告信息
	 * @param screenPlanId
	 * @return
	 */
	public Map<String, String> queryPlan(String screenPlanId);
	/**
	 * 修改广告信息
	 * @param adSereenPlan
	 * @return
	 */
	public void updatePlanInfo(ADSereenPlan adSereenPlan);
	/**
	 * 查询在当前时间内的screen
	 * @return
	 */
	public List<Map<String, String>> queryPhysicIdAll();
	/**
	 * 根据screenId查询大屏幕信息
	 * @param screenId
	 * @return
	 */
	public Map<String, String> queryPhysicId(String screenId);
}
